#!/bin/csh -f
##################################################################
# Name stands for "call grace_stack_timeseries" <- C++ progam.
##################################################################
# Usage: gst.csh "Name of folder into which to store output"
##################################################################
#Copyright 2010 Bryan Killett
#
#This file is part of GAIA.
#
#GAIA is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#GAIA is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with GAIA. If not, see <http://www.gnu.org/licenses/>.
##################################################################

rm -f gst.out

#Now compile the grace_stack_timeseries.cpp program.
make gst

#If I ever decide to log this, how do I delay IDL from running until this
#program is finished?
./gst.out $1

#Run create_plots.pro in IDL with the output folder name
#relative to gaiafolder stored in run.pro
cd ../IDL
idl run.pro
